<?php
namespace Admin\Model;
use Think\Model;
class OorderModel extends Model {
    //自动验证
    protected $_validate = array(
         array('od_id','require','必须！',self::EXISTS_VALIDATE ),
         array('od_no','require','订单号必须！',self::EXISTS_VALIDATE ),
         array('od_value','require','必须！',self::EXISTS_VALIDATE ),
         array('user_id','require','必须！',self::EXISTS_VALIDATE ),
         array('od_provinceid','require','省必须！',self::EXISTS_VALIDATE ),
         array('od_cityid','require','市必须！',self::EXISTS_VALIDATE ),
         array('od_areaid','require','区必须！',self::EXISTS_VALIDATE ),
         array('od_tel','require','必须！',self::EXISTS_VALIDATE ),
         array('od_email','require','必须！',self::EXISTS_VALIDATE ),
         array('od_payway','require','必须！',self::EXISTS_VALIDATE ),
         array('od_contacter','require','联系人必须！',self::EXISTS_VALIDATE ),
         array('od_sendway','require','必须！',self::EXISTS_VALIDATE ),
         array('od_address','require','详细地址必须！',self::EXISTS_VALIDATE ),
         array('od_createtime','require','录入时间必须！',self::EXISTS_VALIDATE ),
         array('od_updatetime','require','更改时间必须！',self::EXISTS_VALIDATE ),
         array('od_status','require','订单状态必须！',self::EXISTS_VALIDATE ),
         
    );
    // 自动填充设置
    protected $_auto = array(
         array('od_createtime','time',self:: MODEL_INSERT,'function'),
         array('od_updatetime','time',self:: MODEL_INSERT,'function'),
         array('od_updatetime','time',self:: MODEL_UPDATE,'function'),
         
    );
}